package com.lx.constant;

import com.lx.boot.config.FirmProperties;

public enum ConfigEunm implements FirmProperties {

    //ES日志
    LX_LOG_ENABLE("server.log.enable","true"),
    //开启GC日志
    LX_LOG_GC_ENABLE("server.log.gc.enable","false"),
    //接口异常拦截器
    WEB_EXCEPTION_HANDLER_ENABLE("server.web.exception.handler.enable","true"),

    //des加密默认密钥
    ENCRYPT_DES("server.encrypt.dec")
    ;


    ConfigEunm(String key) {
        this.key = key;
    }

    ConfigEunm(String key, String defaultValue) {
        this.key = key;
        this.defaultValue = defaultValue;
    }

    private String key;
    private String defaultValue;

    @Override
    public String getKey() {
        return key;
    }

    @Override
    public String getDefaultValue() {
        return defaultValue;
    }
}
